package com.qianyu.versioncontrolcore.entity.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@ApiModel(value = "查询注册数量")
@AllArgsConstructor
@NoArgsConstructor
public class RegisterNumDto {

    /**
     * 版本号
     */
    @ApiModelProperty("版本号")
    @NotNull(message = "版本号不能为空")
    private String version;

    /**
     * 多少秒内
     */
    @ApiModelProperty("多少秒内")
    @NotBlank(message = "多少秒内不能为空")
    private Integer second;
}
